#ifndef BUTTON_H
#define BUTTON_H

#include <QPushButton>
#include "states.h"
#include "tictactoe.h"

class Button : public QPushButton
{
    Q_OBJECT

    States state;
    int m_row;
    int m_col;

public:
    explicit Button(QDialog *parent, int row, int col);

    void paintEvent(QPaintEvent *);
    void mousePressEvent(QMouseEvent *e);

signals:
    States getState(int row, int col);
    States checkWinner();


public slots:

};

#endif // BUTTON_H
